﻿using B.S.BasicData.Domain.Entities;
using Microsoft.EntityFrameworkCore;

namespace B.S.BasicData.Infrastructure
{
    /// <summary>
    /// 数据库
    /// </summary>
    public class ScDbContext : DbContext
    {
        public ScDbContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 账号数据集
        /// </summary>
        public DbSet<AccountModel> AccountModels {  get; set; }
        public DbSet<AccountRoleModel> AccountRoleModels {  get; set; }
        public DbSet<RoleModel> RoleModels {  get; set; }
        public DbSet<LogModel> LogModels {  get; set; }       
        public DbSet<DepartmentModel> DepartmentModels {  get; set; }
        /// <summary>
        /// 网格类型数据集
        /// </summary>
        public DbSet<GridTypeModel> GridTypeModels {  get; set; }


    }
}
